import request from '@/utils/request'

// 查询广告最新列表
export function listGuanggao(query) {
  return request({
    url: '/camp/guanggao/list',
    method: 'get',
    params: query
  })
}

// 查询广告最新详细
export function getGuanggao(id) {
  return request({
    url: '/camp/guanggao/' + id,
    method: 'get'
  })
}

// 新增广告最新
export function addGuanggao(data) {
  return request({
    url: '/camp/guanggao',
    method: 'post',
    data: data
  })
}

// 修改广告最新
export function updateGuanggao(data) {
  return request({
    url: '/camp/guanggao',
    method: 'put',
    data: data
  })
}

// 删除广告最新
export function delGuanggao(id) {
  return request({
    url: '/camp/guanggao/' + id,
    method: 'delete'
  })
}
